package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.LitemallNewsMapper;
import org.linlinjava.litemall.db.dao.LitemallYHKMapper;
import org.linlinjava.litemall.db.domain.LitemallNews;
import org.linlinjava.litemall.db.domain.LitemallYHK;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LitemallYHKService implements LitemallYHKMapper {

    @Autowired
    @Resource
   private LitemallYHKMapper litemallYHKMapper;


    public List<LitemallYHK> selectcarsbyid(int userid) {
        return litemallYHKMapper.selectcarsbyid(userid);
    }

    public LitemallYHK carbyid(Integer id) {
        return litemallYHKMapper.carbyid(id);
    }

    public int insertyhk(LitemallYHK litemallYHK) {
        return litemallYHKMapper.insertyhk(litemallYHK);
    }

    public int updateyhk(LitemallYHK litemallYHK) {
        return litemallYHKMapper.updateyhk(litemallYHK);
    }


    public LitemallYHK isdefaultcar(int userid) {
        return litemallYHKMapper.isdefaultcar(userid);
    }

    public int setdef(int  userid) {
        return litemallYHKMapper.setdef(userid);
    }


}
